<!doctype html>
<html>
<head>

<!--系统编辑-->

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>AI</title>
    <link type="text/css" rel="stylesheet" href="style/index.css">
    <link type="text/css" rel="stylesheet" href="style/reset.css">
    <link type="text/css" rel="stylesheet" href="style/swiper.min.css">
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/path.js"></script>
    <script type="text/javascript" src="js/md5.js"></script>
</head>


<script>



    $(function () {
        var id = window.localStorage.getItem("deviceid");;

        map.ids=id;
        var sign = $.md5(jsonSort(map)+ token + time + time);
        map.sign=sign.toUpperCase();
        $.get(path + '/v1/device/ids', map, function (res) {
            $("#mac_address").val(res.data.macAddress);
            $("#ip_address").val(res.data.ipAddress);
            $("#create_time").val(res.data.createTime);
            $("#platform").val(res.data.platform);
            $("#name").val(res.data.name);
        }, 'json');


    });

    //取消修改按钮
    function cancel() {
        location.href = 'systemsettings.html';
    }

    function tagswindow() {
        $("#tagslist").show();
    }

    function guanbi() {
        $("#tagslist").hide();
    }

    //修改会员
    function affirm() {
        var name = $("#name").val();

        map.id=window.localStorage.getItem("deviceid");
        map.name=name;
        var sign = $.md5(jsonSort(map)+ token + time + time);
        map.sign=sign.toUpperCase();
        $.get(path+"/v1/device/update",map, function (res) {
            if (res.code==0) {
                confirm("修改成功");
                location.href = 'systemsettings.html';
            } else {
                confirm("修改失败");
            }
        }, 'json');
    }


</script>


<body>
<header class="inhead-box">
    <div class="inhead"><a href="#" class="logo abe-fl">人脸识别系统</a>
        <div class="user-info abe-fr"><span><em class="vi-green">admin</em>，您好！ </span> <a href="#" class="uhead"><img
                src="images/user_head.jpg" alt=""></a></div>
        <nav class="abe-fr"><a href="customermanage.html" class="active">会员管理</a><a href="dataanalysis.html">数据分析</a><a href="aishow.html">AI显示</a><a
                href="systemsettings.html">系统设置</a><a href="extendmodule.html">扩展模块</a></nav>
    </div>
</header>
<div class="blank20"></div>
<div class="main">
    <div class="menu abe-fl">
        <h1 class="title"><a href="index.html"><i class="iconfont abe-ft24 mrg_10">&#xe601;</i>回首页</a></h1>
        <ul>
            <li class="active"><a href="customermanage.html"><i class="iconfont">&#xe73c;</i>会员管理</a></li>
            <li><a href="informationpush.html"><i class="iconfont">&#xe600;</i>信息推送</a></li>
            <li><a href="othersettings.html"><i class="iconfont">&#xe660;</i>其他设置</a></li>
        </ul>
    </div>

    <div class="content abe-fr">
        <div class="local"> 当前位置<em class="abe-space">&gt;</em><span class="abe-gray3">会员信息编辑</span></div>

        <div class="user-form">
            <div class="blank20"></div>

            <ul class="user-form-ul" style="padding-left:80px;">


                <li><span>设备名称<i class="abe-red">*</i></span></li>
                <li>
                    <input type="text" class="text" id="name">
                </li>


                <li><span>设备IP<i class="abe-red">*</i></span></li>
                <li>
                    <input type="text" class="text"  disabled="true" id="ip_address">
                </li>


                <li><span>设备序列号<i class="abe-red">*</i></span></li>
                <li>
                    <input type="text" class="text"  disabled="true" id="mac_address">
                </li>


                <li><span>注册时间<i class="abe-red">*</i></span></li>
                <li>
                    <input type="text" class="text"  disabled="true" id="create_time">
                </li>


                <li><span>平台<i class="abe-red">*</i></span></li>
                <li>
                    <input type="text" class="text"  disabled="true" id="platform">
                </li>



                <li class="com-submit pdt_10">

                    <input type="button" class="vi-btn-green" onclick="affirm()" value="确认修改">
                    <input type="button" class="vi-btn-orange mlg_15" onclick="cancel()" value="取消修改">
                </li>
            </ul>
            <div class="blank30"></div>

        </div>
    </div>





</div>
<div class="icp">Copyright © 2006 - 2015 人脸识别系统版权所有 沪ICP备 0000001号</div>
</body>
</html>
